#!/bin/bash


. remote_setup.sh

echo Starting Registry on $SRV_REG
ssh $SRV_REG ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_registry.sh" 

echo Starting Tomcat on $SRV_TOMCAT1
ssh $SRV_TOMCAT1 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_tomcat.sh" 

echo Starting Tomcat on $SRV_TOMCAT2
ssh $SRV_TOMCAT2 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_tomcat.sh" 

echo Starting Tomcat on $SRV_TOMCAT3
ssh $SRV_TOMCAT3 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_tomcat.sh" 
echo Starting Tomcat on $SRV_TOMCAT4
ssh $SRV_TOMCAT4 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_tomcat.sh" 
echo Starting Tomcat on $SRV_TOMCAT5
ssh $SRV_TOMCAT5 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_tomcat.sh" 
#echo Starting Tomcat on $SRV_TOMCAT6
#ssh $SRV_TOMCAT6 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_tomcat.sh" 

#ssh $SRV_TOMCAT7 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_tomcat.sh" 

echo Starting Audit Log on $SRV_LOG
ssh $SRV_LOG ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_log.sh" 

echo Starting DB on $SRV_DB
ssh $SRV_DB ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_db.sh" 

echo Starting Quote on $SRV_QUOTE
ssh $SRV_QUOTE ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_quote.sh" 

echo Starting Transaction on $SRV_TRANS1
ssh $SRV_TRANS1 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_transaction.sh" 

echo Starting Transaction on $SRV_TRANS2
ssh $SRV_TRANS2 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_transaction.sh" 

echo Starting Transaction on $SRV_TRANS3
ssh $SRV_TRANS3 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_transaction.sh" 

echo Starting Transaction on $SRV_TRANS4
ssh $SRV_TRANS4 ". ~/.bash_profile;if [ \"$ROOT462\" = \"\" ]; then echo ERROR ROOT462 not set; exit 1; fi;cd $ROOT462;./start_transaction.sh" 

